import axios from "../index";

const prefix = '/api/'

const AUTH_PREFIX = prefix + 'auth/'



const authApi = {
    login:(userName:string,password:string) => {
       return axios.post(AUTH_PREFIX + 'login',{
                    userName,
                    password
                })
    }
}

export default authApi